Skip to content

Add pipe-based gateway launch integration test#115

Merged
pelikhan merged 4 commits into
mainfrom
copilot/add-integration-test-gateway-launch
Jan 10, 2026
Merged

Add pipe-based gateway launch integration test#115
pelikhan merged 4 commits into
mainfrom
copilot/add-integration-test-gateway-launch

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 10, 2026

Adds integration test demonstrating gateway launch via pipes (standard pipe and named FIFO), similar to start_mcp_gateway_server.sh pattern in gh-aw.

Changes

Shell Script (test/integration/start_gateway_with_pipe.sh)

  • Implements two pipe mechanisms:
    • Standard pipe: echo "$CONFIG_JSON" | awmg --config-stdin
    • Named FIFO: mkfifo → write config → gateway reads from pipe
  • Environment-driven configuration (binary path, port, mode, pipe type)
  • Cleanup handling with NO_CLEANUP flag for test control

Integration Tests (test/integration/pipe_launch_test.go)

  • Tests 4 scenarios: {standard, named} × {routed, unified}
  • Validates health checks and MCP initialize flow
  • Script validation tests for error paths

Example Usage

# Standard pipe
BINARY=./awmg PORT=8000 MODE=--routed PIPE_TYPE=standard ./start_gateway_with_pipe.sh

# Named pipe (FIFO)
BINARY=./awmg PORT=8001 MODE=--unified PIPE_TYPE=named ./start_gateway_with_pipe.sh

Demonstrates stdin-based config for containerized deployments where file-based config isn't suitable.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/githubnext/gh-aw/git/trees/main
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add an integration test that uses a shell script similar to the start_mcp_gateway_server.sh in githubnext/gh-aw to launch the gateway using pipes.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 10, 2026 02:23
- Created start_gateway_with_pipe.sh script that launches gateway using pipes
- Supports two pipe mechanisms: standard pipe (echo | command) and named pipes (FIFO)
- Added comprehensive integration tests covering both routed and unified modes
- Tests validate health checks and MCP initialize requests work correctly
- Script includes proper cleanup and error handling
- All integration tests passing

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Enhanced test documentation with detailed explanation of pipe mechanisms
- Added comprehensive script header with usage examples
- Clarified purpose and use cases for pipe-based gateway launching
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Successfully ran make agent-finished
- All formatting, linting, and tests pass
- Pipe-based integration tests working correctly
- No regressions introduced

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add integration test for gateway launch using shell script Add pipe-based gateway launch integration test Jan 10, 2026
Copilot AI requested a review from pelikhan January 10, 2026 02:27
@pelikhan pelikhan marked this pull request as ready for review January 10, 2026 02:30
@pelikhan pelikhan merged commit a6d4a7e into main Jan 10, 2026
3 checks passed
@pelikhan pelikhan deleted the copilot/add-integration-test-gateway-launch branch January 10, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants